<extend name="Index::index" />
<block name="title"><title>商品详情</title></block>
<block name="table">
	<div class="agoods_nav">
		<span>商品详情</span>
		<a href="{:U('Goods/index',['p'=>$p])}"><button style="width:100px;height:40px;border:none;background:#6CCCCB;float:right;margin-right:40px;margin-top:5px;border-radius:10px;color:#2C6787;">返回</button></a>
	</div>
	
	
			<table border="0" cellspacing="0" cellpadding="5" style="margin-left:100px;">
				<tr>
					<td width="100">编号:</td>
					<td>{$list['gid']}</td>
				</tr>
				<tr>
					<td>商品名称:</td>
					<td>{$list['gname']}</td>
				</tr>
				<tr>
					<td>图片:</td>
					<td><img src="__ROOT__{$list['giname']}" alt="图片加载失败"></td>
				</tr>
				<tr>
					<td></td>
					<td>
					<foreach name="imglist" item="value">
						<img src="__ROOT__{$value['name']}" alt="图片加载失败">
					</foreach>
					</td>
				</tr>
				<tr>
					<td width="100">添加时间:</td>
					<td>{$list['gtime']}</td>
				</tr>
				<tr>
					<td>描述:</td>
					<td><textarea cols="30" rows="5" readonly>
						{$list['gd']}
					</textarea></td>
				</tr>
				<tr>
					<td></td>
					<td><a href="{:U('Goods/addimg',['id'=>$list['gid']])}"><button style="width:80px;height:40px;border:none;background:#6CCCCB;border-radius:10px;color:#2C6787;">添加图片</button></td>
				</tr>
			</table>
</block>

